package com.pet.system.domain;

import com.pet.common.annotation.Excel;
import com.pet.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 产品对象 pet_product
 *
 * @author pet
 * @date 2022-10-09
 */
public class PetProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 主键ID
     */
    private Long brandId;

    /**
     * 类目
     */
    @Excel(name = "类目")
    private String category;

    /**
     * 品牌id
     */
    @Excel(name = "品牌名称")
    private String brandName;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String productName;

    /**
     * 规格
     */
    @Excel(name = "规格")
    private String spec;

    /**
     * 批发价
     */
    @Excel(name = "批发价")
    private BigDecimal tradePrice;

    /**
     * 零售价
     */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;

    /**
     * 优惠活动
     */
    @Excel(name = "优惠活动")
    private String promotion;

    private Long userId;

    private byte[] image;
    private String imageUrl;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpec() {
        return spec;
    }

    public void setTradePrice(BigDecimal tradePrice) {
        this.tradePrice = tradePrice;
    }

    public BigDecimal getTradePrice() {
        return tradePrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setPromotion(String promotion) {
        this.promotion = promotion;
    }

    public String getPromotion() {
        return promotion;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public byte[] getImage() {
        return image;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public String toString() {
        return "PetProduct{" +
                "id=" + id +
                ", category=" + category +
                ", brandId=" + brandId +
                ", brandName=" + brandName +
                ", productName='" + productName + '\'' +
                ", spec='" + spec + '\'' +
                ", tradePrice=" + tradePrice +
                ", retailPrice=" + retailPrice +
                ", promotion='" + promotion + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
